<template>
	<view class="content" style="height: 100%;">
		<img class="imagebox" src="/static/company/company.png" style="width: 100%; height: auto;"  mode="widthFix" alt="">
		<view class="page">
			<view class="title">
				<view class="display">
					<i class="i"></i>
					<span class="tit">参展楼盘</span>
				</view>
				<view class="des">点击查看详细介绍</view>
			</view>
			
			<ul class="ul">
				<li class="li" v-for="i in 20" @click='linkHref(1)'>
					<img src="/static/company/com.jpeg" v-if="i%2 == 1" class="img" alt="">
					<img src="/static/company/com1.jpeg" v-else class="img" alt="">
					<view class="p"> 万达广场</view>
				</li>
			</ul>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			linkHref(){
				console.log(1)
				uni.navigateTo({
					url: '/pages/company/detail'
				})
			}
		}
	}
</script>

<style>
	.page{height:100%; padding: 10px; width: 100%; box-sizing: border-box; /*设置高度100%，达到满屏状态*/}
	.imagebox{display:flex;height: 100%;/*重点，铺满全屏*/justify-content: center;align-items:center;}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.ul{
		width: 100%;
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
		word-wrap: break-word;
	}
	.li{
		margin-top: 8px;
		width: 50%;
	}
	.li .img{
		display: block;
		margin: 0 auto;
		width: 140px;
		height: 140px;
	}
	.li .p{
		margin-top: 8px;
		text-align: center;
	}
	.title {
		display: flex;
		justify-content: flex-start;
		align-items: baseline;
		font-size: 18px;
		color: #8f8f94;
	}
	.display{
		display: flex;
		align-items: center;
	}
	.i{
		margin-right: 8px;
		display: inline-block;
		height: 16px;
		width: 4px;
		background-color: #ff0202;
	}
	.tit{
		color: #333;
		font-size: 18px;
	}
	.des{
		margin-left: 10px;
		font-size: 14px;
		color: #999999;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}


</style>
